Skip to content

fix(runs): version workspace.json, keep its open state apart and lock its saves - #646

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/workspace-record
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/workspace-record

Conversation

@harenome

@harenome harenome commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #363

What

  • workspace.json: version, uid, label, roots, saved conversions. state.json: opened, closed. Old records read.
  • Writes re-read under workspace.json.lock, never remake a folder or touch a later workspace of that name (uid when either has one, else folder and time).
  • Two creates of one label make two.
  • Another version is not listed or written; a run delete keeps its judgements (unreadable workspaces: Deleting a run drops judgements that an unreadable or malformed workspace may still hold #759).
  • No valid state.json: closed, launch refused.
  • Open and closed reads, launch grouping included, share one root list.

Verified

  • Before, after: judgements kept 0/1, now 1; closed read 1/2 jobs, now 2; stale handle (legacy too) closed a reused-inode workspace, now not; stale launch root grouped only closed, now never.
  • Suites pass. check_docs.py: 0 findings.

Risk

  • An older Nullius does not start on the new format.

Agents

  • Claude Code, Opus 5.5
  • Claude Code, Fable 5.2
  • Codex, GPT-6.2-Astra

@harenome harenome added the stacked Based on another branch than main label Dec 1, 2026
@github-actions github-actions Bot removed the stacked Based on another branch than main label Dec 1, 2026
@harenome
harenome marked this pull request as ready for review December 1, 2026 22:11
@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit merge conflict Conflicts with its base: merge or rebase it and removed needs review Tests pass, no conflict, no verdict on its latest commit labels Dec 1, 2026
@harenome
harenome force-pushed the fix/workspace-record branch from 7d03d20 to 5c604e9 Compare December 3, 2026 10:54
@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed merge conflict Conflicts with its base: merge or rebase it labels Dec 3, 2026
@github-actions github-actions Bot added merge conflict Conflicts with its base: merge or rebase it and removed needs review Tests pass, no conflict, no verdict on its latest commit labels Dec 3, 2026
@harenome
harenome force-pushed the fix/workspace-record branch from 5c604e9 to 573cbbe Compare December 3, 2026 11:09
@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed merge conflict Conflicts with its base: merge or rebase it labels Dec 3, 2026
@harenome
harenome merged commit 5f15fd5 into ThinkFlowLab:main Dec 3, 2026
2 checks passed
@harenome
harenome deleted the fix/workspace-record branch December 3, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

workspace.json has no version, is rewritten at every open, and its saves are not locked

1 participant